window: Use CAIRO_OPERATOR_SOURCE to clear to background
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 14 Jul 2014 22:58:27 +0000 (18:58 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 14 Jul 2014 23:14:40 +0000 (19:14 -0400)
commit3878519449d3ca81c42feff6f58a6fdcd34bbb6b
tree2c65c89c90592bb46c0e69eb54c163851b2ed767
parentb0bd9d82a30079f9fd747426e4c769c514810e81
window: Use CAIRO_OPERATOR_SOURCE to clear to background

Some windows, like GtkWindow and some other apps, set a transparent
background. The guarantee for begin_paint_region is that there should
be a full clear to the specified background color, not a composite
against what was there before.

This fixes repaint artifacts in Wayland and Weston in a better way than
76922c169f0699d9b85ef3eff2170f2cede1782c.
gdk/gdkwindow.c